//
//  LRTestVC.swift
//  WeiboX
//
//  Created by admin on 01/12/2016.
//  Copyright © 2016 iOS_Objective-C. All rights reserved.
//

import UIKit

class LRTestVC: UIViewController {

    override func viewDidLoad() {
        super.viewDidLoad()

		view.backgroundColor = UIColor.white
		
		setupNavUI()
    }

    override func didReceiveMemoryWarning() {
        super.didReceiveMemoryWarning()
        // Dispose of any resources that can be recreated.
    }
	
	@objc private func setupNavUI() {
//		navigationItem.leftBarButtonItem = UIBarButtonItem(title: "Me", target: self, action: #selector(backBtnAction))
		
		navigationItem.rightBarButtonItem = UIBarButtonItem(title: "Push", target: self, action: #selector(pushBtnAction))
	}
	
	@objc private func pushBtnAction() {
		let testVC = LRTestVC()
		navigationController?.pushViewController(testVC, animated: true)
	}
	
//	@objc private func backBtnAction() {
//		navigationController?.popViewController(animated: true)
//	}

    /*
    // MARK: - Navigation

    // In a storyboard-based application, you will often want to do a little preparation before navigation
    override func prepare(for segue: UIStoryboardSegue, sender: Any?) {
        // Get the new view controller using segue.destinationViewController.
        // Pass the selected object to the new view controller.
    }
    */

}
